
<!DOCTYPE html>
<html>
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php echo $title_for_layout; ?>
        </title>
        <?php
        echo $this->Html->meta('icon');
        echo $this->Html->css(array('cake.generic', 'style', 'fonts', 'smoothness/jquery-ui-1.10.3.custom', 'movingboxes', 'demo/demo'));
        echo $this->Html->script(array('jquery', 'jquery-ui', 'jquery.movingboxes', 'demo/demo'));
        echo $this->fetch('meta');
        echo $this->fetch('css');
        echo $this->fetch('script');
        echo $this->Js->writeBuffer(array('cache' => TRUE));
        ?>

    </head>

    <body>
        <header>
            <h1><?php echo $this->Html->Link('Ecomerce', array('controller' => 'pages', 'action' => 'display', 'home'))
        ?></h1>
            <nav>
                <ul>
                    <li><?php echo $this->Html->link('Productos', array('controller' => 'Productos', 'action' => 'index')) ?></li>
                    <li><?php echo $this->Html->link('Categorias', array('controller' => 'Categorias', 'action' => 'index')) ?></li>
                    <li><?php echo $this->Html->link('Clientes', array('controller' => 'Clientes', 'action' => 'index')) ?></li>
                    <li><?php echo $this->Html->link('Buscar productos', array('controller' => 'pages', 'action' => 'display', 'home')) ?></li>

                </ul>
            </nav>
        </header>

        <?php echo $this->Session->flash(); ?>
        <?php echo $this->fetch('content'); ?>


        <footer>
            <?php
            //echo $this->element('sql_dump'); 
            ?>
        </footer>

    </body>
</html>
